package cn.ad.service;

import cn.ad.handler.SqlSessionHandler;
import cn.ad.model.RatioModel;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>广告位比例Service实现类</p>
 * @author helong.zhao
 * @date 2016/7/13
 */
@Service
public class RatioService {

    private static Logger logger= LoggerFactory.getLogger(RatioService.class);

    @Autowired
    private SqlSessionHandler sqlSessionHandler;

    public List<RatioModel> findRatioList() {
        return sqlSessionHandler.selectList("ratioMapper.selectAll", null);
    }
}
